
<%@ page import="org.xilin.Book" %>

<g:setProvider library="jquery"/>

  <div>
      <table>
          <tbody>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="name"><g:message code="book.name.label" default="Name" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="name" value="${bookInstance?.name}" />
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="category"><g:message code="book.category.label" default="Category" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="category" value="${bookInstance?.category}" />
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="description"><g:message code="book.description.label" default="Description" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="description" value="${bookInstance?.description}" />
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="price"><g:message code="book.price.label" default="Price" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="price" value="${fieldValue(bean: bookInstance, field: 'price')}" />
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="stock"><g:message code="book.stock.label" default="Stock" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="stock" value="${fieldValue(bean: bookInstance, field: 'stock')}" />
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                    <label for="reserve"><g:message code="book.reserve.label" default="Reserve" /></label>
                  </td>
                  <td valign="top" class="value">
                      <g:textField name="reserve" value="${fieldValue(bean: bookInstance, field: 'reserve')}" />
                  </td>
              </tr>

          </tbody>
      </table>
  </div>
